import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { NewPasswordPage } from "../new-password/new-password";
import { HttpServiceProvider } from '../../providers/http-service/http-service';
/**
 * Generated class for the GetVerificationCodePage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-get-verification-code',
  templateUrl: 'get-verification-code.html',
})
export class GetVerificationCodePage {

  constructor(public navCtrl: NavController, public navParams: NavParams,private httpServiceProvider: HttpServiceProvider) {

  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad GetVerificationCodePage');
  }

  GoToNewPWD() {
    this.navCtrl.push(NewPasswordPage);
  }

  //getVCode(iphone_no:string) {
  getVCode() {

    let link='http://zhongqing.iotplc.cn/Login/register/sendCode/18615261581';
    this.httpServiceProvider.get(link).then(data=>{console.log(data)});
  }

}
